package com.neusoft.kq.demos.service.Impl;

import com.neusoft.kq.demos.entity.His;
import com.neusoft.kq.demos.entity.Order;

import com.neusoft.kq.demos.mapper.OrderMapper;
import com.neusoft.kq.demos.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper orderMapper;
    @Override
    public List<Order> selectList(Order order){
        return orderMapper.selectList(order);
    }

    @Override
    public void addOrder(Order order)
    {
        orderMapper.addOrder(order);
    }

    @Override
    public void updateOrder(Order order){
        orderMapper.updateOrder(order);
    }

    @Override
    public void delOrder(int order_id){
        orderMapper.delOrder(order_id);
    }
}
